﻿using GameFramework;
using GameFramework.Event;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace TowerDefence_Zombie
{
    public class CreatCoinEventAgrs : GameEventArgs
    {
        public static readonly int EventId = typeof(CreatCoinEventAgrs).GetHashCode();

        public int CoinNum
        {
            get;
            private set;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }

        public Vector3 Position
        {
            get;
            private set;
        }



        public CreatCoinEventAgrs()
        {
            CoinNum = 0;
        }

        public static CreatCoinEventAgrs Create(int coinNum,Vector3 position ,object userData = null)
        {
            CreatCoinEventAgrs creatCoinEventAgrs = ReferencePool.Acquire<CreatCoinEventAgrs>();
            creatCoinEventAgrs.CoinNum = coinNum;
            creatCoinEventAgrs.Position = position;
            return creatCoinEventAgrs;
        }

        public override void Clear()
        {
        }
    }
}
